# 随机模块
import random

# 生成一个1-10之间的随机整数
nums = random.randint(1, 10)
print(nums)

# 随机选择  list列表\tuple元组\str字符串
a = (1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
res = random.choice(a)
print(res)

b = 'python'
res1 = random.choice(b)
print(res1)

